﻿using System;
using System.Data.Linq.Mapping;
using SpectrumAnalyser.Data.Common.Contracts;

namespace SpectrumAnalyser.Data.DataBase.MSSQL.Mapping
{
    public class MsSqlDbMapping : IDbEntitiesMapping
    {
        private const string MAPPING_PATH = "Mapping/MappingMsSql.xml";

        public string InstanceType
        {
            get { return "MsSql"; }
        }

        public MappingSource GetMappingSource()
        {
            return XmlMappingSource.FromUrl(MAPPING_PATH);
        }
    }
}